package com.efast.cafe.portal.bean.api;

import java.util.Date;

import com.efast.cafe.framework.bean.QueryPageBase;
import com.efast.cafe.framework.constant.CommonConstant;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class PortalApiObjectDto extends QueryPageBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5125040005007808364L;

	private Integer type = CommonConstant.PortalNodeType.SYSTEM;

	private Integer projectId;

	private Integer systemId;

	private Integer moduleId;

	private String parentName;

	private String parentVersion;

	/* objectId */
	private Integer id;

	/* 对象名称 */
	private String objName;

	private String startTime;

	private String endTime;

	/* 对象类型.1:table,2:javaBean,3:json,4:KV */
	private Byte objType;

	/* 对象全称，是table和bean类型时，输入对应类的全路径，其它为空 */
	private String objFullName;

	/* 对象描述 */
	private String objDesc;

	/* 对象版本 */
	private String version;

	/* 是否删除,1:删除，2未删除 */
	private Byte isDel;

	/* 服务状态,1:发布 2:开发 */
	private Byte status;

	/**/
	private Integer parentId;

	private String publishIndentifier;

	/**/
	private Date parentLastTime;

	/* 跨版本整个平台唯一标识 */
	private String uuid;

	/* 跨版本上级内唯一标识描述，类似于中文名的翻译 */
	private String indentifier;

	/* 发布时间 */
	private Date publishTime;

	/* 是否启用,1:启用，2：禁用 */
	private Byte isEnabled;

	/* 系统字段，创建时间 */
	private Date createTime;

	/* 系统字段，创建人 */
	private String createUser;

	/* 系统字段，最后更新人 */
	private String lastUpdateUser;

	/* 系统字段 修后更新时间 */
	private Date lastUpdateTime;

	/* 系统字段，数据版本号 */
	private Integer optCounter;

	private String tableName;
	private String layout;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getObjName() {
		return objName;
	}

	public void setObjName(String objName) {
		this.objName = objName;
	}

	public Byte getObjType() {
		return this.objType;
	}

	public void setObjType(Byte objType) {
		this.objType = objType;
	}

	public String getObjFullName() {
		return this.objFullName;
	}

	public void setObjFullName(String objFullName) {
		this.objFullName = objFullName;
	}

	public String getObjDesc() {
		return this.objDesc;
	}

	public void setObjDesc(String objDesc) {
		this.objDesc = objDesc;
	}

	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Byte getIsDel() {
		return this.isDel;
	}

	public void setIsDel(Byte isDel) {
		this.isDel = isDel;
	}

	public Byte getStatus() {
		return this.status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getParentLastTime() {
		return this.parentLastTime;
	}

	public void setParentLastTime(Date parentLastTime) {
		this.parentLastTime = parentLastTime;
	}

	public String getUuid() {
		return this.uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getIndentifier() {
		return this.indentifier;
	}

	public void setIndentifier(String indentifier) {
		this.indentifier = indentifier;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Byte getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Byte isEnabled) {
		this.isEnabled = isEnabled;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Integer getOptCounter() {
		return this.optCounter;
	}

	public void setOptCounter(Integer optCounter) {
		this.optCounter = optCounter;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getSystemId() {
		return systemId;
	}

	public void setSystemId(Integer systemId) {
		this.systemId = systemId;
	}

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getParentVersion() {
		return parentVersion;
	}

	public void setParentVersion(String parentVersion) {
		this.parentVersion = parentVersion;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getPublishIndentifier() {
		return publishIndentifier;
	}

	public void setPublishIndentifier(String publishIndentifier) {
		this.publishIndentifier = publishIndentifier;
	}

	public String getLayout() {
		return layout;
	}

	public void setLayout(String layout) {
		this.layout = layout;
	}

}
